
package webservices.framework.affilinet.types.productservice;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for ImageSize.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="ImageSize">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="NoImage"/>
 *     &lt;enumeration value="Image30Logo50"/>
 *     &lt;enumeration value="Image60Logo90"/>
 *     &lt;enumeration value="Image90Logo120"/>
 *     &lt;enumeration value="Image120Logo150"/>
 *     &lt;enumeration value="Image180Logo468"/>
 *     &lt;enumeration value="AllImages"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "ImageSize")
@XmlEnum
public enum ImageSize {

    @XmlEnumValue("NoImage")
    NO_IMAGE("NoImage"),
    @XmlEnumValue("Image30Logo50")
    IMAGE_30_LOGO_50("Image30Logo50"),
    @XmlEnumValue("Image60Logo90")
    IMAGE_60_LOGO_90("Image60Logo90"),
    @XmlEnumValue("Image90Logo120")
    IMAGE_90_LOGO_120("Image90Logo120"),
    @XmlEnumValue("Image120Logo150")
    IMAGE_120_LOGO_150("Image120Logo150"),
    @XmlEnumValue("Image180Logo468")
    IMAGE_180_LOGO_468("Image180Logo468"),
    @XmlEnumValue("AllImages")
    ALL_IMAGES("AllImages");
    private final String value;

    ImageSize(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static ImageSize fromValue(String v) {
        for (ImageSize c: ImageSize.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
